package io.renren.modules.lucky.service;

import io.renren.common.service.CrudService;
import io.renren.modules.lucky.dto.LuckyUserConfigDTO;
import io.renren.modules.lucky.entity.LuckyUserConfigEntity;

import java.util.List;

/**
 * 招财猫租户配置
 *
 * @author Liang Pei 
 * @since 1.0.0 2025-01-07
 */
public interface LuckyUserConfigService extends CrudService<LuckyUserConfigEntity, LuckyUserConfigDTO> {

        /**
        * 根据unionKey获取商户code
        *
        * @param unionKey
        * @return
        */
        LuckyUserConfigEntity getEntityByUnionKey(String unionKey);

        /**
         * 根据uid获取商户信息
         */
        LuckyUserConfigEntity getEntityByUid(Long uid);

        /**
         * 获取所有配置
         * @return
         */
        List<LuckyUserConfigEntity> getAll();
}